package com.panlf.common;

import cn.hutool.core.text.StrFormatter;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author panlf
 * @since 2024/1/10 10:45
 */
public class LogUtil {

    public static void info(String info, Object... params) {

        String format = StrFormatter.format(info, params);

        String timeStr = new SimpleDateFormat("HH:mm:ss.SSS").format(new Date());

        System.out.print(timeStr + " [" + Thread.currentThread().getName() + "]" + " - " + format);
    }

    public static void main(String[] args) {
        info("tt{}, aa", "bb");
    }

}
